//
//  AppDelegate.m
//  微博
//
//  Created by 陈帅府 on 15-3-16.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "AppDelegate.h"
#import "SFTabBarController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
   //1.初始化Log
    // Standard lumberjack initialization
    [DDLog addLogger:[DDTTYLogger sharedInstance]];
    
    // And we also enable colors
    [[DDTTYLogger sharedInstance] setColorsEnabled:YES];
    
    
    //2.创建windows
    //设置window的模式
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    //2.2设置window的背景颜色
    self.window.backgroundColor = [UIColor whiteColor];
    
    //3.设置window的根控制器
    SFTabBarController *tb = [[SFTabBarController alloc]init];
    self.window.rootViewController = tb;
     //4.显示window
    
    [self.window makeKeyAndVisible];

    return YES;
}

@end
